import api from "../utils/http";
import qs from "qs";
export const loginAPI = (data) => {
  return new Promise((resolve) => {
    api.post("/login", qs.stringify(data)).then((res) => {
      resolve(res);
    });
  });
};
export const registerAPI = (data) => {
  return new Promise((resolve) => {
    api.post("/register", qs.stringify(data)).then((res) => {
      resolve(res.data);
    });
  });
};
